package com.fruit.constants;

/**
 * 
 * @ClassName: OrderConstant
 * @author 葛欢欢
 * @version 2017.11.30 16:40
 */
public class OrderConstant {
	public final static String ORDER_AUTO_CANCEL = "order_auto_cancel_"; // 自动取消

	/**
	 * 
	 * @ClassName: State
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 */
	public enum State {
		notpay("00"), pay("01"), cancel("05");
		String value;

		State(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @return String
		 */
		public String getValue() {
			return value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 */
		public void setValue(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 * @return boolean
		 */
		public boolean equals(String value) {
			return this.value.equals(value);
		}
	}

	/**
	 * 
	 * @ClassName: Type
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 */
	public enum Type {
		goods("00"), packageGoods("01");
		String value;

		Type(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @return String
		 */
		public String getValue() {
			return value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 */
		public void setValue(String value) {
			this.value = value;
		}
	}

	/**
	 * 
	 * @ClassName: ServiceState
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 */
	public enum ServiceState {
		updateOrder("00"), updateFruit("01"), handelRights("02"), handelCommission("03"), cancelUpdateOrder(
				"04"), cancelUpdateFruit("05"), handelNotice("06"), handelActivity("06");
		String value;

		ServiceState(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @return String
		 */
		public String getValue() {
			return value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 */
		public void setValue(String value) {
			this.value = value;
		}
	}

	/**
	 * 
	 * @ClassName: TransactionServiceState
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 */
	public enum TransactionServiceState {
		update("00"), updateUser("01");
		String value;

		TransactionServiceState(String value) {
			this.value = value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @return String
		 */
		public String getValue() {
			return value;
		}

		/**
		 * 
		 * @author 葛欢欢
		 * @version 2017.11.30 16:40
		 * @param value
		 *            value
		 */
		public void setValue(String value) {
			this.value = value;
		}
	}

}
